import Vue from 'vue';
import Router from 'vue-router';
import Login from '@/page/login';
import Index from '@/page/index';

/***********************收入部分*********************/
// 学员报名缴费
import StuPayment from '@/page/income/stupayment';
// 模拟考试缴费
import SimulationFee from "@/page/income/simulationfee";
// 学员加时缴费
import ExtraFee from "@/page/income/extrafee";
// 包库管理费
import ContractFee from "@/page/income/contractfee"

import Expenditure from '@/page/expenditure';
import Select from '@/page/select';
import User from '@/page/user-information';
import Wages from '@/page/wages';
import GZSZ from '@/page/gongzisehzhi';
import XCSY from '@/page/shengya';
import Baoxian from '@/page/baoxian';
import Jianche from '@/page/jianche';
import Baoxiao from '@/page/baoxiao';
import Weixiu from '@/page/weixiu';
import Juese from '@/page/role';
import Bulu from '@/page/shujubulu';
import Tuifei from '@/page/tuifei';

/*********************查询部分***********************/
import Employee from '@/page/employee';

Vue.use(Router);

export default new Router({
	linkActiveClass: 'on', //设置 链接激活时使用的 CSS 类名。默认值可以通过路由的构造选项 linkActiveClass 来全局配置。
	routes: [{
			path: '/',
			name: 'login',
			component: Login,
			meta: {
				tabbar: false,
			}
		},
		{
			path: '/index',
			name: 'index',
			component: Index,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/income/stupayment',
			name: 'income-stupayment',
			component: StuPayment,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/income/simulationfee',
			name: 'income-simulationfee',
			component: SimulationFee,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/income/extrafee',
			name: 'income-extrafee',
			component: ExtraFee,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/income/contractfee',
			name: 'income-contractfee',
			component: ContractFee,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/expenditure',
			name: 'expenditure',
			component: Expenditure,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/select',
			name: 'select',
			component: Select,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/yuangongweihu',
			name: 'yuangongweihu',
			component: Employee,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/yonghuweihu',
			name: 'yonghuweihu',
			component: User,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
				isPermission: true, //需要验证权限
			}
		},
		{
			path: '/gongzifafang',
			name: 'gongzifafang',
			component: Wages,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/gongzishezhi',
			name: 'gongzishezhi',
			component: GZSZ,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/xuecheshengya',
			name: 'xuecheshengya',
			component: XCSY,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/cheliangbaoxian',
			name: 'baoxian',
			component: Baoxian,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/cheliangjieche',
			name: 'jianche',
			component: Jianche,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/feiyongbaoxiao',
			name: 'baoxiao',
			component: Baoxiao,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/weihuweixiu',
			name: 'Weixiu',
			component: Weixiu,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/jueseweihu',
			name: 'juese',
			component: Juese,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/shujubulu',
			name: 'Bulu',
			component: Bulu,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
		{
			path: '/xueyuantuifei',
			name: 'tuifei',
			component: Tuifei,
			meta: {
				tabbar: true,
				requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
			}
		},
	]
})